<?php
class BuyModel extends TransModel {
	protected $_validate = array(
		array('supplier_id','require','必须选择供应商！'), //默认情况下用正则进行验证
		array('buy_no','','单号已经存在，请输入不同单号或在原单号中进行补录！',0,'unique',1), 
	);
	
	protected $_auto = array(
        array('create_time','intime',1,'callback'),
        array('update_time','time',2,'function'),
        array('buy_no','getmano',1,'callback'),
    );
	
}
?>
